/*
 * @(#)CamCacheLoaderTimerTask.java
 * 
 * Create Version: 1.0.0
 * Author: James Liu
 * Create Date: 2009-12-09
 * 
 * Copyright (c) 2009 ASPire Information Technologies Ltd. All Right Reserved.
 */


package com.aspire.boc.mms.wmf.cam;


import java.util.TimerTask;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * 这个类继承TimerTask类，用于定时刷新CamCache。
 *
 * @version 1.0.0   2009-12-09
 * @author  James Liu
 */
public class CamCacheLoaderTimerTask extends TimerTask {
    
    private CamCache cache;
    
    private static Log log = LogFactory.getLog(CamCache.class);
    
    public CamCacheLoaderTimerTask(CamCache cache) {
        
        this.cache = cache;
    }
    
    public void run() {
        log.info(">>>>>>>>>>>启动定时权限加载器.........");
        this.cache.load();
        log.info(">>>>>>>>>>>启动定时权限加载器，成功 ！.........");
    }
}